package Util::Source::Source;
use Moose;
use namespace::autoclean;
use JSON;

has 'schema' => (
	is => 'rw',
	required => 1,
	isa => 'DBIx::Class::Schema',
);

#####################################################
#Return: 
#	All sources
#####################################################
sub get_all {
	my ($self) = @_;
	return $self->schema->resultset('Source')->all;
}

__PACKAGE__->meta->make_immutable;

1;
